package com.wuhunyu.service;

import com.wuhunyu.commonutils.result.CommonResult;
import com.wuhunyu.entities.EduSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author wuhunyu
 * @since 2021-01-16
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * 添加课程
     * @param file
     * @return
     */
    public CommonResult addSubject(MultipartFile file,EduSubjectService eduSubjectService);

    /**
     * 添加课程具体逻辑
     * @param oneSubjectName
     * @param twoSubjectName
     * @return
     */
    public void addSubjectDetail(String oneSubjectName, String twoSubjectName);

    /**
     * 查询所有课程信息
     * @return
     */
    public CommonResult selectAllSubjects();

    /**
     * 为下拉框查询所有课程分类信息
     * @return
     */
    public CommonResult selectSubjectsForSelect();

}
